package org.qee.mq.kafka;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

@Component
public class Producer {

    @Autowired
    private KafkaTemplate<String, String> template;


    @Autowired
    private KafkaProperties kafkaProperties;

    public void send(String abc) {
        template.send(kafkaProperties.getTopic(), abc);
    }
}
